package com.nit.lab.dao;

import com.nit.lab.dto.DtohisOrder;
import com.nit.lab.model.BaseOrderEntity;
import com.nit.lab.model.BaseOrderFileEntity;

import javax.persistence.criteria.CriteriaBuilder;
import java.util.List;

public interface OrderDao {
    /**
     * @Description: 创建订单
     * @Author: 卫超越
     * @Date: 2017/12/12 下午9:22
     * @return:
     */
    Integer creatOrder_file(BaseOrderFileEntity baseOrderFileEntity) throws Exception;

    /**
     * @Description:
     * @Author: 卫超越
     * @Date: 2017/12/14 上午8:45
     * @return:
     */
    Integer creatOrder(BaseOrderEntity baseOrderEntity,Integer creat) throws Exception;

    /**
     * @Description: 获取颜色单价
     * @Author: 卫超越
     * @Date: 2017/12/26 下午6:05
     * @return:
     */
    Double getColor(Integer paperColorId) throws Exception;

    /**
     * @Description: 获取大小单价
     * @Author: 卫超越
     * @Date: 2017/12/26 下午6:13
     * @return:
     */
    Double getSize(Integer paperSizeId) throws Exception;

    /**
     * @Description: 获取页数单价
     * @Author: 卫超越
     * @Date: 2017/12/26 下午6:15
     * @return:
     */
    Double getType(Integer paperTypeId) throws Exception;

    /**
     * @Description: 获取未完成订单数量
     * @Author: 卫超越
     * @Date: 2017/12/28 下午2:55
     * @return:
     */
    Integer getHisOrderDataTableCount(String search, Integer pre, Integer actorId) throws Exception;

    /**
     * @Description: 获取未完成订单信息
     * @Author: 卫超越
     * @Date: 2017/12/28 下午3:47
     * @return:
     */
    List<DtohisOrder> getHisOrderDataTable(Integer start, Integer length, String search, Integer pre, Integer actorId) throws Exception;

    /**
     * @Description: 更改订单状态
     * @Author: 卫超越
     * @Date: 2017/12/28 下午10:26
     * @return:
     */
    Integer chageOrderStatus(Integer orderId, Integer orderStatus) throws Exception;
}
